package com.tom.mybatis.config;

/**
 * @author : tom
 * @project: tom-mybatis
 * @date : 2018/11/7 14:46
 */
public class Configuration {
    private String scanPath;

    private MapperRegistory mapperRegistory = new MapperRegistory();

    public MapperRegistory getMapperRegistory() {
        return mapperRegistory;
    }

    public Configuration scanPath(String scanPath) {
        this.scanPath = scanPath;
        return this;
    }

    public void build(){
        if(scanPath==null||scanPath.length()<1){
            throw new RuntimeException("scan path is required");
        }
    }
}
